package com.ruoyi.antchain.service;

import com.alipay.mychain.sdk.vm.EVMParameter;
import com.ruoyi.common.core.domain.AjaxResult;

/**
 * 合约类
 *
 * @author deng
 * @date 2020/11/13 9:21
 */
public interface AntChainService {

    /**
     * 部署合约
     * @param contractId
     * @param contractContent
     * @param contractParameters
     * @return
     */
    AjaxResult deployContract(String contractId,String contractContent,EVMParameter contractParameters);


    /**
     * 执行合约
     * @param contractId
     * @param contractParameters
     * @return
     */
    AjaxResult callContract(String contractId,EVMParameter contractParameters);


    /**
     * 查询合约数据
     * @param contractId
     * @param contractParameters
     * @return
     */
    AjaxResult queryContract(String contractId,EVMParameter contractParameters);

}
